package edu.zut.cs.software.module.warehouse.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.teach.Base.domain.BaseEntity;

/**
 * 
 * @author 1104606112
 *
 */

@Entity
@Table(name="T_Warehouse")
public class Warehouse extends BaseEntity<Long>{
	private static final long serialVersionUID = -2411978175041541798L;
	/**
	 * get name
	 */
	@Column 
	String name;
	/**
	 * get id
	 */
	@Column
	Long id;
	/**
	 * get number
	 */
	@Column
	String number;
	@ManyToOne
	@JoinColumn(name = "T_WarehouseCategory_ID")
	WarehouseCategory warehousecategory;
	
	public WarehouseCategory getWarehouseCategory() {
		return warehousecategory;
	}
	public void setWarehouseCategory(WarehouseCategory warehousecategory) {
		this.warehousecategory=warehousecategory;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	

	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	

}
